package com.senven.payorder.feign;

import com.senven.common.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author zsy
 * @Date 2022/9/7 10:54
 * @PackageName:com.senven.payorder.feign
 * @ClassName: OrderFeign
 * @Version 1.0
 */
@FeignClient(value = "orderfood-senven-order")
public interface OrderFeign {

    @PostMapping("/api/order/insertOrder")
    public String insertOrder(@RequestBody Order order);
}
